;
var APP_DEV_ENV = 0, // 1开发环境 0生产环境
    appJoin = APP_DEV_ENV ? "?" : "",
    appType = {
        "insert": "insert",
        "del": "del",
        "sel": "sel",
        "update": "update",
    },
    __ = function (x) { console.log(x); };

if (APP_DEV_ENV) {
    appType.insert = "sel";
    appType.del = "sel";
    appType.update = "sel";
}

function appApi(code) {

    var appApi = {
        // 退出
        "LOGOUT": APP_DEV_ENV ? "login.html" : $.getWebRootPath("logout"),
        // 获取系统列表
        "GET_SYS": APP_DEV_ENV ? "json/login.json" : $.getWebRootPath("menu/getSys")
    };

    return appApi[code];
}
